package com.roadjava.GDOUGym.convert;

import com.roadjava.GDOUGym.bean.dto.PlaceDTO;
import com.roadjava.GDOUGym.bean.dto.RecordDTO;
import com.roadjava.GDOUGym.bean.entity.PlaceDO;
import com.roadjava.GDOUGym.bean.entity.RecordDO;
import org.mapstruct.Mapper;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Mapper(componentModel = "spring")
public abstract class RecordConvert {
    @Resource
    private HttpServletRequest httpServletRequest;

    public abstract RecordDO dto2do(RecordDTO dto);

    public abstract RecordDTO recorDdo2dto(RecordDO recordDO);

    public abstract List<RecordDTO> dos2dtos(List<RecordDO> recordDOS);
}
